<?php

use think\facade\Route;

// 测试路由
Route::group('test', function () {

    Route::group(function () {
        Route::post('sendSms', 'pc.TestController/sendSms')->name('sendSms')->option(['real_name' => '测试发送短信']);
    });

    Route::group(function () {
        Route::post('upload', 'pc.TestController/upload')->name('upload')->option(['real_name' => '测试上传文件']);
    });

    Route::group(function () {
        Route::get('form', 'pc.TestController/testform')->name('form')->option(['real_name' => '测试创建form']);
    });

    Route::group(function () {
        Route::post('pay', 'pc.TestController/pay')->name('pay')->option(['real_name' => '测试支付']);
    });

    Route::group(function () {
        Route::post('antiFake', 'pc.TestController/antiFake')->name('anti-fake')->option(['real_name' => '测试防伪']);
    });

    Route::group(function () {
        Route::rule('history', 'pc.TestController/history')->name('history')->option(['real_name' => '测试历史搜索']);
    });

    Route::group(function () {
        Route::post('historyDel', 'pc.TestController/historyDel')->name('historyDel')->option(['real_name' => '测试历史数据删除']);
    });

})->middleware(\app\http\middleware\AllowOriginMiddleware::class)
    ->middleware(\app\api\middleware\StationOpenMiddleware::class)
    ->option(['mark' => 'Test', 'mark_name' => 'Test']);
